<?php 
header("content-type:text/html;charset=utf-8");

require '../Model/config.php';
require '../Model/Model.class.php';

$model = new Model('lamp_address');
// var_dump($model);
//接收查询条件
$upid = empty($_GET['upid'])?0:$_GET['upid'];
// var_dump($upid);
//查询
$data = $model->where('upid='.$upid)->select();
// var_dump($data);
//将结果返回
echo json_encode($data);